package com.qijian.production.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qijian.common.core.domain.entity.SysUser;
import com.qijian.production.domain.PointOrder;
import com.qijian.production.domain.query.PointOrderQuery;
import com.qijian.production.domain.vo.PointOrderVo;

import java.util.List;

/**
 * 非标准定额申请单Service接口
 *
 * @author qijian
 * @date 2023-12-06
 */
public interface IPointOrderService extends IService<PointOrder> {
    String saveOrUpdateOrder(PointOrderVo pointOrderVo);

    PointOrderVo getVoById(Long id);

    Page<PointOrderVo> pageVo(Page<PointOrderVo> page, QueryWrapper<PointOrderQuery> queryWrapper);

    List<PointOrderVo> selectVoByCondition(Wrapper<PointOrderQuery> queryWrapper);

    /***
     * 根据申请id创建对应的工单数据
     * @param mainId 主键id
     * @return
     */
    boolean createProcessOrder(Long mainId,String title,String userName,String createTime,String userId,String processInstanceId);


    SysUser selectBomCraftUserIdsByBomId(Long bomId);

}
